From: Carlos Garnacho Date: Fri, 16 Oct 2015 16:00:01 +0000 (+0200) Subject: workspacesView: Return from overview when tapping on an empty workspace X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1046 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ffa8c2f2b10080d98fd004fb172b1b4554c10424;p=gnome-shell.git workspacesView: Return from overview when tapping on an empty workspace This works for pointers and touch on X11, there is however no pointer emulation on evdev, so touch triggers ::clicked with button==0 which is ignored. https://bugzilla.gnome.org/show_bug.cgi?id=756748 --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index e2b585da4..e0c9249c7 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -421,7 +421,7 @@ const WorkspacesDisplay = new Lang.Class({ // Only switch to the workspace when there's no application // windows open. The problem is that it's too easy to miss // an app window and get the wrong one focused. - if (action.get_button() == 1 && + if ((action.get_button() == 1 || action.get_button() == 0) && this._getPrimaryView().getActiveWorkspace().isEmpty()) Main.overview.hide(); }));